package org.asg.dis.repository;

import org.asg.dis.model.Shipment;
import org.asg.dis.model.ShipmentStatus;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.UUID;

@Repository
public interface ShipmentRepository extends JpaRepository<Shipment, UUID> {
    // status字段是 ShipmentStatus.异常
    long countByStatus(ShipmentStatus status);

}
